/* eslint-disable @typescript-eslint/no-var-requires */
// eslint-disable-next-line @typescript-eslint/no-var-requires
const Koa = require('koa')
const koaMount = require('koa-mount')
const koaStatic = require('koa-static')
const path = require('path')
const app = new Koa()
const router = require('./router')
const resolve = (file) => path.resolve(__dirname,file) 


app.use(koaMount('/dist',koaStatic(resolve('../dist'))))

app.use(router.routes()).use(router.allowedMethods())


app.listen(3000)
